package com.videoanswer.van.web.client.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

public class PaymentController {
	/*
	 * students buy some product. step one: to the purchase page
	 */
	@RequestMapping(value = { "/purchaseStepOne" }, method = { RequestMethod.GET })
	public ModelAndView purchaseStepOne(HttpServletRequest request,
			HttpServletResponse response, HttpSession session) throws Exception{
		
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("isUnitPage", true);
		map.put("hasMainNav", false);
		
		return new ModelAndView("/payment/purchaseStepOne", map);
	}
	
	/*
	 * students outer shopping cart
	 */
	@RequestMapping(value = { "/studentOuterShoppingCart" }, method = { RequestMethod.GET })
	public ModelAndView studentOuterShoppingCart(HttpServletRequest request,
			HttpServletResponse response, HttpSession session) throws Exception{
		
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("isUnitPage", true);
		map.put("hasMainNav", false);
		
		return new ModelAndView("/payment/studentOuterShoppingCart", map);
	}
}
